package com.g1.service.impl;

import com.g1.entity.Finance;
import com.g1.mapper.FinanceMapper;
import com.g1.service.FinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
@Service
public class FinanceServiceImpl implements FinanceService {
    @Autowired
    private FinanceMapper financeMapper;
    @Override
    public List<Finance> selectAll() {
        return financeMapper.selectList(null);
    }

    @Override
    public int insert(Finance finance) {
        return financeMapper.insert(finance);
    }
}
